package com.iris.live.services.services.impl;

import com.iris.live.services.data.repositories.QueryTodayTodoListRepository;
import com.iris.live.services.services.TodayReceptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * Created by ThinkPad on 2016/9/22.
 */
@Service
@Transactional//(readOnly = true)
public class TodayReceptionServiceImpl implements TodayReceptionService {
    @Autowired
private QueryTodayTodoListRepository queryTodayTodoListRepository;
    @Override
    public List queryTodayTodoList(String startDate,String endDate,String permit) {
       List list= queryTodayTodoListRepository.getLSHtodoList(startDate,endDate,permit);
        return list;
    }
    public static void main(String args[]) {
      /* Calendar.getInstance(); */
        Date now = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        String hehe = dateFormat.format( now );
        System.out.println(hehe);
        System.out.println("Hello World!"+  Calendar.getInstance());
    }

}
